Repository navigation
Conversation
maruson08
marked this pull request as ready for review
November 17, 2026 14:12
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behavior
Document Scanner now creates and downloads a local PDF from the current ordered source images. Original/Grayscale/Document modes are applied at full decoded source resolution, EXIF orientation is preserved, and existing A4 auto-orientation/10-mm contain fitting is reused. The actual generated PDF is previewed with the existing local PDF.js renderer.
Dependency and review range
Depends on #141, which was still open/unmerged at preflight. Head starts at its inspected head f33acad. The requested base is v2.4, so prerequisite 24A commits appear until #141 is merged separately. Review 24B changes from that parent SHA; merge #141 first only through separate user authorization. This PR does not modify or merge #141.
Implementation
Verification
Local typecheck, compile, production build and targeted regressions passed. Real Chromium generated and parsed two four-page PDF downloads; embedded 1,200x2,000 and 2,000x1,200 images, EXIF 30x60 output, exact order and actual mode pixel values were verified. Ten result viewport/locale cases, cancellation, stale changes, writer failure/retry, budget rejection, URL cleanup and worker teardown completed.
The local full-suite HTTP gate and browser security checks correctly reject AdGuard's injected CSP/requests. Strict expectations were not relaxed. All clean hosted CI/security/browser gates passed for head 98a34f2. Physical mobile, Firefox and Edge were not tested locally.
Exact changed paths, commands/results, memory/cancellation limits and 24C follow-ups: docs/sprint-24b-scan-to-pdf.md.
No merge, tag, release or production deployment is authorized. Optional scanner OCR remains 24C and searchable-PDF adapter work remains 24D.
Final hosted verification
This PR is ready for review following successful verification; it remains unmerged and depends on #141.